<?php
/**
 * A set of requirements for testing
*/

namespace BWL\webshopBundle\DataFixtures\ORM;

use Doctrine\Common\DataFixtures\AbstractFixture;
use Doctrine\Common\DataFixtures\OrderedFixtureInterface;
use Doctrine\Common\Persistence\ObjectManager;

class RequirementFixtures extends AbstractFixture implements OrderedFixtureInterface
{

  /**
   * Load data fixtures with the passed EntityManager
   *
   * @param Doctrine\Common\Persistence\ObjectManager $manager
   */
  function load(ObjectManager $manager) {
    $manager->getRepository('BWLwebshopBundle:Requirement')->updateByOrderings();
  }

  /**
   * Get the order of this fixture
   *
   * @return integer
   */
  function getOrder() {
    return 9;
  }
}